package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2023-09-15
 * Time:21:45
 */
@Data
public class CommentInfo {
    private Integer id; // 评论 id
    private Integer aid;// 文章id
    private Integer uid; // 用户 id
    private String comment; // 评论的内容
    private String photo; // 用户头像
    private String nickname; // 用户昵称
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+1")
    private LocalDateTime createtime;// 发布时间
}
